﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using My_TV_Manager.Model;

namespace My_TV_Manager.View.ContentPanel.Track
{
    [System.ComponentModel.DesignerCategory("")]

    public class TrackedSeriesPanel : SeriesDisplayPanel
    {
        // Declare the necessary constructor for the inherited class
        public TrackedSeriesPanel(SearchResult searchResult, double bannerScale,
                                 Size size, Controller controller)
            : base(searchResult, bannerScale, size, controller) 
        {
            manageButton.Text = "Remove";
        }

        // Handles the click on the manage button to add/remove a search result
        protected override void ManageClickHandler(object sender, EventArgs e)
        {
            controller.RemoveTrackedSeries(searchResult);
        }
    }
}
